package com.demos.diveinspring.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 *  仿造源码中的ConditionalOnProperty
 * @Author tom
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@Conditional({OnSystemPropertyCondition.class})
public @interface ConditionalOnSystemProperty {

    String name();

    String value();
}
